﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;

namespace FrameworkXNA.Scenes
{
    class Listas : SceneBase
    {
        List<Object2D> lista;

        public override void start()
        {
            lista = new List<Object2D>();

            for (int i = 0; i < 3; i++)
            {
                Object2D objeto = new Object2D(Game1.instance.Content.Load<Texture2D>("bola"));
                objeto.x = 100 + (100 * i);
                lista.Add(objeto);
            }

            base.start();
        }

        public override void draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch)
        {
            foreach (Object2D objeto in lista)
            {
                objeto.Draw(spriteBatch);
            }

            base.draw(spriteBatch);
        }
    }
}
